import Vue from 'vue'; //引用vue
import Router from 'vue-router';  //引用路由

const index = resolve => {require(['../pages/index/index'], resolve)};    //引用index页面
const shouye = resolve => {require(['../pages/index/shouye/shouye'], resolve)};    //首页
const order = resolve => {require(['../pages/index/order/order'], resolve)};     //订单
const addorder = resolve => {require(['../pages/index/order/addorder'], resolve)};     //新增订单
const orderDatalis = resolve => {require(['../pages/index/order/orderDatalis'], resolve)};     //订单详情
const Modiforder = resolve => {require(['../pages/index/order/Modiforder'], resolve)};     //修改订货单
const goods = resolve => {require(['../pages/index/goods/goods'], resolve)};   //商品
const kehu = resolve => {require(['../pages/index/kehu/kehu'], resolve)};       //个人客户
const addkehu = resolve => {require(['../pages/index/kehu/addkehu'], resolve)};       //新增个人客户
const modifykehu = resolve => {require(['../pages/index/kehu/modify'], resolve)};       //修改个人客户
const kehuxiangqing = resolve => {require(['../pages/index/kehu/kehuxiangqing'], resolve)};       //个人客户详情
const enterprise = resolve => {require(['../pages/index/kehu/enterprise'], resolve)};       //企业客户
const addenterprise = resolve => {require(['../pages/index/kehu/addenterprise'], resolve)};       //新增企业客户
const enterpriseupdate = resolve => {require(['../pages/index/kehu/enterpriseupdate'], resolve)};       //修改企业客户
//const enterpriseupdate = resolve => {require(['../pages/index/kehu/enterpriseupdate'], resolve)};       //企业客户详情
const recharge = resolve => {require(['../pages/index/zijin/recharge'], resolve)};      //充值审核
const accountReceivable = resolve => {require(['../pages/index/zijin/accountReceivable'], resolve)};      //收款账户
const moneyDetails = resolve => {require(['../pages/index/zijin/moneyDetails'], resolve)};     //资金明细
const chargeBack = resolve => {require(['../pages/index/zijin/chargeBack'], resolve)};      //扣款审核
const budgetDetails=resolve=>{require(['../pages/index/zijin/budgetDetails'],resolve)};     //收支明细
const fundAccount=resolve=>{require(['../pages/index/zijin/fundAccount'],resolve)};     //资金账户
const collection=resolve=>{require(['../pages/index/zijin/collection'],resolve)};     //收款确认
const orderPay=resolve=>{require(['../pages/index/zijin/orderPay'],resolve)};     //订单收款统计
const marketing = resolve => {require(['../pages/index/marketing/marketing'], resolve)};    //营销
const table = resolve => {require(['../pages/index/table/table'], resolve)};       //报表
const goodsBrand = resolve => {require(['../pages/index/set/goods-brand'], resolve)};      //设置里的商品品牌
const fundProcess = resolve => {require(['../pages/index/set/fundProcess'], resolve)};      //资金处理流程设置
const memberGrade = resolve => {require(['../pages/index/set/memberGrade'], resolve)};    //设置里的客户级别
const notifySmsHistoryList = resolve => {require(['../pages/index/notify/notifySmsHistoryList'], resolve)};    //短信列表
const systemCmemberList = resolve => {require(['../pages/index/system/systemCmemberList'], resolve)};    //运营商列表
const systemCmemberSave = resolve => {require(['../pages/index/system/systemCmemberSave'], resolve)};    //网站开关
const systemCpropList = resolve => {require(['../pages/index/system/systemCpropList'], resolve)};    //属性对照列表
const systemCpropAdd = resolve => {require(['../pages/index/system/systemCpropAdd'], resolve)};    //属性对照新增
const systemServerList = resolve => {require(['../pages/index/system/systemServerList'], resolve)};    //服务器列表
const systemServerAdd = resolve => {require(['../pages/index/system/systemServerAdd'], resolve)};    //服务器新增
const systemDdlistList = resolve => {require(['../pages/index/system/systemDdlistList'], resolve)};    //系统字典
const memberOpLogList = resolve => {require(['../pages/index/member/memberOpLogList'], resolve)};    //后台操作日志列表
const zhanghaozhushou = resolve => {require(['../pages/other/zhanghaozhushou/zhanghaozhushou'], resolve)};    //招商助手
const xitongcanshu = resolve => {require(['../pages/other/xitongcanshu/xitongcanshu'], resolve)};     //系统参数
const departmentStaff = resolve => {require(['../pages/index/set/department-staff'], resolve)};      //部门与员工
const addNewAccount = resolve => {require(['../pages/index/set/addNewAccount'], resolve)};      //新增账号
const modifyAccount = resolve => {require(['../pages/index/set/modifyAccount'], resolve)};      //新增账号
const goodsClassify = resolve => {require(['../pages/index/set/goods-classify'], resolve)};      //商品分类
const basicUnit = resolve => {require(['../pages/index/set/basicUnit'], resolve)};      //计量单位
const basicRegion = resolve => {require(['../pages/index/set/basicRegion'], resolve)};      //会员归属区域
const companyMsg = resolve => {require(['../pages/index/set/companyMsg'], resolve)};      //公司信息
const accountMsg = resolve => {require(['../pages/index/set/accountMsg'], resolve)};      //账号信息
const accountSafety = resolve => {require(['../pages/other/accountSafety'], resolve)};      //账号安全
const basicDDType = resolve => {require(['../pages/index/set/basicDDType'], resolve)};      //业务字典
const login = resolve => {require(['../pages/other/login'], resolve)};      //登录页
const browser = resolve => {require(['../pages/other/browser'], resolve)};      //选择高版本浏览器
const addGoods = resolve => {require(['../pages/index/goods/addGoods'], resolve)};      //新增商品
const updateGoods = resolve => {require(['../pages/index/goods/updateGoods'], resolve)};      //修改商品
const goodDetails = resolve => {require(['../pages/index/goods/goodDetails'], resolve)};      //商品详情
const doing = resolve => {require(['../pages/index/set/doing'], resolve)};      //敬请期待
const errorPage = resolve => {require(['../pages/other/errorPage'], resolve)};      //404页面
const ddcllc = resolve => {require(['../pages/index/set/ddcllc'], resolve)};      //订单处理流程
const xitongchushihua = resolve => {require(['../pages/index/set/xitongchushihua'], resolve)};     //系统初始化
const goodschuli = resolve => {require(['../pages/index/set/goodschuli'], resolve)};      //商品处理流程
const memberschuli = resolve => {require(['../pages/index/set/memberschuli'], resolve)};      //会员处理流程
const zijinchuli = resolve => {require(['../pages/index/set/zijinchuli'], resolve)};      //资金处理流程
const kehufankui = resolve => {require(['../pages/index/kehu/kehufankui'], resolve)};      //客户反馈
const forget = resolve => {require(['../pages/other/forget'], resolve)};      //忘记密码
const reset = resolve => {require(['../pages/other/reset'], resolve)};      //重置密码
const reg = resolve => {require(['../pages/other/reg'], resolve)};      //注册
const goodsWarehouse = resolve => {require(['../pages/index/set/goodsWarehouse'], resolve)};      //仓库
const stockCheckinList = resolve => {require(['../pages/index/goods/stockCheckinList'], resolve)};      //商品入库
const stockCheckinDetail = resolve => {require(['../pages/index/goods/stockCheckinDetail'], resolve)};      //商品入库明细
const stockCheckinAdd = resolve => {require(['../pages/index/goods/stockCheckinAdd'], resolve)};      //商品入库新增
const stockCheckoutList = resolve => {require(['../pages/index/goods/stockCheckoutList'], resolve)};      //商品出库
const stockCheckoutDetail = resolve => {require(['../pages/index/goods/stockCheckoutDetail'], resolve)};      //商品出库明细
const stockCheckoutAdd = resolve => {require(['../pages/index/goods/stockCheckoutAdd'], resolve)};      //商品出库新增
const purOrderList = resolve => {require(['../pages/index/goods/purOrderList'], resolve)};      //采购订单
const purOrderDetail = resolve => {require(['../pages/index/goods/purOrderDetail'], resolve)};      //采购订单明细
const purOrderAdd = resolve => {require(['../pages/index/goods/purOrderAdd'], resolve)};      //新增采购订单
const purOrderUpdate = resolve => {require(['../pages/index/goods/purOrderUpdate'], resolve)};      //编辑采购订单
const purCompanyGoodsList = resolve => {require(['../pages/index/goods/purCompanyGoodsList'], resolve)};      //供货商品列表
const purOrderStorage = resolve => {require(['../pages/index/goods/purOrderStorage'], resolve)};      //采购待入库
const warehousingAudit = resolve => {require(['../pages/index/goods/warehousingAudit'], resolve)};      //入库审核
const saleOrderPruleList = resolve => {require(['../pages/index/marketing/saleOrderPruleList'], resolve)};      //订单促销列表
const orderPromotionalNew = resolve => {require(['../pages/index/marketing/orderPromotionalNew'], resolve)};      //订单促销新增
const saleGoodsPruleList = resolve => {require(['../pages/index/marketing/saleGoodsPruleList'], resolve)};      //商品促销列表
const goodsPromotionalNew = resolve => {require(['../pages/index/marketing/goodsPromotionalNew'], resolve)};      //商品促销新增
const tableGoodsList = resolve => {require(['../pages/index/goods/tableGoodsList'], resolve)};      //商品收发总汇
const goodsDetail = resolve => {require(['../pages/index/goods/goodsDetail'], resolve)};      //商品收发总汇
const purCompanyList = resolve => {require(['../pages/index/goods/purCompanyList'], resolve)};      //供货商管理
const purCompanyAdd = resolve => {require(['../pages/index/goods/purCompanyAdd'], resolve)};      //新增供货商
const purCompanyUpdate = resolve => {require(['../pages/index/goods/purCompanyUpdate'], resolve)};      //修改供货商
const stockGoodsList = resolve => {require(['../pages/index/goods/stockGoodsList'], resolve)};      //库存列表
const stockGoodsListList = resolve => {require(['../pages/index/goods/stockGoodsListList'], resolve)};      //商品出入库列表
const stockGoodsDetail = resolve => {require(['../pages/index/goods/stockGoodsDetail'], resolve)};      //商品出入库明细
const portalDocPlace = resolve => {require(['../pages/index/set/portalDocPlace'], resolve)};    //通知分类
const portalAdvListList = resolve => {require(['../pages/sale/goodsPrule/portalAdvListList'],resolve)};				//广告发布列表
const saveAd = resolve => {require(['../pages/sale/goodsPrule/saveAd'], resolve)};      //广告新增
const rateSet = resolve => {require(['../pages/sale/goodsPrule/rateSet'], resolve)};      //佣金比例设置
const rewardDetailsList = resolve => {require(['../pages/sale/goodsPrule/rewardDetailsList'], resolve)};      //奖金明细
const goodsDistributList = resolve => {require(['../pages/sale/goodsPrule/goodsDistributList'], resolve)};      //添加商品分销
const saveAdUpdate = resolve => {require(['../pages/sale/goodsPrule/saveAdUpdate'], resolve)};      //广告修改
const saveInfo = resolve => {require(['../pages/sale/goodsPrule/saveInfo'], resolve)};      //通知新增
const saveInfoDetail = resolve => {require(['../pages/sale/goodsPrule/saveInfoDetail'], resolve)};      //通知详情
const portalDocListList = resolve => {require(['../pages/sale/goodsPrule/portalDocListList'],resolve)};				//通知公告列表
const tableNameAdd = resolve => {require(['../pages/prefix/suffix/tableNameAdd'], resolve)};      //模板
const tableNameList = resolve => {require(['../pages/prefix/suffix/tableNameList'], resolve)};      //模板
//融资  start
const finPledgeList = resolve => {require(['../pages/index/fin/pledge/finPledgeList'], resolve)};    //质物管理列表
const finPledgeListContract = resolve => {require(['../pages/index/fin/pledge/finPledgeListContract'], resolve)};    //融资合同管理列表
const finPledgeListFirstApply = resolve => {require(['../pages/index/fin/pledge/finPledgeListFirstApply'], resolve)};    //融资合同初审列表
const finPledgeListLastApply = resolve => {require(['../pages/index/fin/pledge/finPledgeListLastApply'], resolve)};    //融资合同复审列表
const finPledgeListExtension = resolve => {require(['../pages/index/fin/pledge/finPledgeListExtension'], resolve)};    //融资展期列表
const finPledgeListDanger = resolve => {require(['../pages/index/fin/pledge/finPledgeListDanger'], resolve)};    //融资风险列表
const finRepayList = resolve => {require(['../pages/index/fin/repay/finRepayList'], resolve)};    //融资还款列表
const finAccountListLimit = resolve => {require(['../pages/index/fin/account/finAccountListLimit'], resolve)};    //融资额度列表
const finAccountApplyList = resolve => {require(['../pages/index/fin/account/finAccountApplyList'], resolve)};    //融资额度审核列表
//融资  end
const payService = resolve => {require(['../pages/other/payService'], resolve)};      //购买服务

//商城 start
const portalWebsite = resolve => {require(['../pages/index/portal/portalWebsite'], resolve)};    //商城站点列表
const portalTemplate = resolve => {require(['../pages/index/portal/portalTemplate'], resolve)};   //商城模板管理
const portalPage = resolve => {require(['../pages/index/portal/portalPage'], resolve)};   //商城页面管理
const portalPageWx = resolve => {require(['../pages/index/portal/portalPageWx'], resolve)};   //微信页面管理
const portalContentManage = resolve => {require(['../pages/index/portal/portalContentManage'], resolve)};   //内容管理
const portalContentAdd = resolve => {require(['../pages/index/portal/portalContentAdd'], resolve)};   //内容详情
const portalDocListListSystem = resolve => {require(['../pages/index/portal/portalDocListListSystem'], resolve)};   //系统公告列表
const portalDocListListShengJi = resolve => {require(['../pages/index/portal/portalDocListListShengJi'], resolve)};   //升级公告列表
const portalDocListDetail1 = resolve => {require(['../pages/index/portal/portalDocListDetail1'], resolve)};   //系统/升级公告详情
//商城 end

//运费模板 start
const transTemplateList = resolve => {require(['../pages/index/trans/transTemplateList'], resolve)};    //运费模板列表
const transAddNewTemplate = resolve => {require(['../pages/index/trans/transAddNewTemplate'], resolve)};    //新增运费模板
const modifyTransTemplate = resolve => {require(['../pages/index/trans/modifyTransTemplate'], resolve)};    //修改运费模板
//运费模板 end

//应用中心  start
const centerIndex = resolve => {require(['../pages/applicationCenter/centerIndex'], resolve)};    //应用中心首页
const zcService = resolve => {require(['../pages/applicationCenter/zcService'], resolve)};    //智齿客服
const zcEmpower = resolve => {require(['../pages/applicationCenter/zcEmpower'], resolve)};    //智齿授权（未授权）
const readyPower = resolve => {require(['../pages/applicationCenter/readyPower'], resolve)};    //智齿授权（已授权）
//应用中心  end


const loading_login = resolve => {require(['../pages/other/loading_login'], resolve)};   //login页面的loading
const service = resolve => {require(['../pages/other/service'], resolve)};   //服务

Vue.use(Router);


export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/login'  //如果地址为空时重定向为 /index
    },

    //index
    {
      path: '/',
      component: index,
      children:[
	      {
	      		path:'/tableNameList',
	      		component: tableNameList     //模板
	      },
	      {
	      		path:'/tableNameAdd',
	      		component: tableNameAdd     //模板
	      },
        //运费模板  start
        {
          path:'/transTemplateList',
          component:transTemplateList     //运费模板列表
        },
        {
          path:'/transAddNewTemplate',
          component:transAddNewTemplate     //新增运费模板
        },
        {
          path:'/modifyTransTemplate',
          component:modifyTransTemplate     //修改运费模板
        },
        //运费模板  end

        //融资   start
        {
          path:'/finPledgeList',
          component: finPledgeList     //质押列表
        },
        {
          path:'/finPledgeListContract',
          component: finPledgeListContract     //融资合同管理列表
        },
        {
          path:'/finPledgeListFirstApply',
          component: finPledgeListFirstApply     //融资合同初审列表
        },
        {
          path:'/finPledgeListLastApply',
          component: finPledgeListLastApply     //融资申请复审列表
        },
        {
          path:'/finPledgeListExtension',
          component: finPledgeListExtension     //融资展期列表
        },
        {
          path:'/finPledgeListDanger',
          component: finPledgeListDanger     //风险管理
        },
        {
          path:'/finRepayList',
          component: finRepayList     //融资还款管理
        },
        {
          path:'/finAccountListLimit',
          component: finAccountListLimit     //融资额度列表
        },
        {
          path:'/finAccountApplyList',
          component: finAccountApplyList     //融资额度审核列表
        },
        //融资   end
        {
          path:'/portalWebsite',
          component: portalWebsite     //商城站点列表
        },
        {
          path:'/portalTemplate',
          component: portalTemplate     //商城模板管理
        },
        {
          path:'/portalWebsite/portalPage',
          component: portalPage     //商城页面管理
        },
        {
          path:'/portalWebsite/portalPageWx',
          component: portalPageWx     //微信页面管理
        },
        {
          path:'/portalContentManage',
          component: portalContentManage     //内容管理
        },
        {
          path:'/portalContentAdd',
          component: portalContentAdd     //内容详情
        },
        {
          path:'/portalDocListListSystem',
          component: portalDocListListSystem     //系统公告列表
        },
        {
          path:'/portalDocListListShengJi',
          component: portalDocListListShengJi    //升级公告列表
        },
        {
          path:'/portalDocListDetail1',
          component: portalDocListDetail1    //系统/升级公告详情
        },
	      {
	      		path:'/collection',
	      		component: collection     //收款确认
	      },
      	{
      		path:'/index',
      		component: shouye     //首页
      	},
      	{
      		path:'/order',     //订单目录
      		component: order
      	},
      	{
      		path:'/addorder',     //订单目录
      		component: addorder
      	},
      	{
      		path:'/orderDatalis',     //订单详情
      		component: orderDatalis
      	},
      	{
      		path:'/Modiforder',     //修改订单
      		component: Modiforder
      	},
      	{
      		path:'/goods',    //商品目录
      		component: goods
      	},
      	{
      		path:'/kehu',    //个人客户目录
      		component: kehu
      	},
      	{

      		path:'/addkehu',    //新增个人客户
      		component: addkehu
      	},
      	{
      		path:'/modifykehu',    //修改个人客户信息
      		component: modifykehu
      	},
      	{
      		path:'/kehuxiangqing',    //个人客户详情
      		component: kehuxiangqing,
      		redirect: '/modifykehu'
      	},
      	{
      		path:'/enterprise',    //企业客户目录
      		component: enterprise
      	},
      	{

      		path:'/addenterprise',    //新增企业客户
      		component: addenterprise
      	},
      	{
      		path:'/enterpriseupdate',    //修改企业客户信息
      		component: enterpriseupdate
      	},
//    	{
//    		path:'/enterpriseupdate',    //企业客户详情
//    		component: enterpriseupdate
//    	},
      	{
      		path:'/recharge',   //充值审核
      		component: recharge
      	},
        {
          path:'/accountReceivable',   //收款账户
          component: accountReceivable
        },
        {
          path:'/chargeBack',   //扣款审核
          component: chargeBack
        },
        {
          path:'/budgetDetails',  //资金目录下的收支明细
          component: budgetDetails
        },
        {
          path:'/moneyDetails',   //资金明细
          component: moneyDetails
        },
        {
          path:'/orderPay',   //订单收款统计
          component: orderPay
        },
        {
          path:'/fundAccount',  //资金目录下的资金账户
          component: fundAccount
        },
      	{
      		redirect: '/doing',
      		path:'/marketing',   //营销
      		component: marketing
      	},
      	{
      		redirect: '/doing',
      		path:'/table',      //报表
      		component: table
      	},
      	{
      		path:'/set/goodsBrand',   //商品品牌
      		component: goodsBrand
      	},
        {
          path:'/set/fundProcess',   //资金处理流程
          component: fundProcess
        },
      	{
      		path:'/set/goodsClassify',   //商品分类
      		component: goodsClassify
      	},
      	{
      		path:'/set/basicUnit',   //计量单位
      		component: basicUnit
      	},
      	{
      		path:'/set/basicRegion',   //会员归属区域
      		component: basicRegion
      	},
      	{
      		path:'/set/companyMsg',   //公司信息
      		component: companyMsg
      	},
      	{
      		path:'/set/memberGrade',      //客户级别
      		component: memberGrade
      	},
      	{
      		path:'/notify/notifySmsHistoryList',      //短信列表
      		component: notifySmsHistoryList
      	},
       	{
      		path:'/system/systemCmemberList',      //运营商列表
      		component: systemCmemberList
      	},
      	{
      		path:'/system/systemCmemberSave',      //网站开关
      		component: systemCmemberSave
      	},
				{
      		path:'/system/systemCpropList',      //属性对照列表
      		component: systemCpropList
      	},
      	{
      		path:'/system/systemCpropAdd',      //属性对照新增
      		component: systemCpropAdd
      	},
      	{
      		path:'/system/systemServerList',      //服务器列表
      		component: systemServerList
      	},
      	{
      		path:'/system/systemServerAdd',      //服务器新增
      		component: systemServerAdd
      	},
      	{
      		path:'/system/systemDdlistList',      //系统字典
      		component: systemDdlistList
      	},
      	{
      		path:'/member/memberOpLogList',      //后台操作日志列表
      		component: memberOpLogList
      	},
      	{
      		path:'/set/portalDocPlace',      //通知类型
      		component: portalDocPlace
      	},
      	{
      		path:'/set/departmentStaff',   //部门与员工
      		component: departmentStaff,
      	},
        {
          path:'/set/modifyAccount',   //修改账号
          component: modifyAccount,
        },
        {
          path:'/set/addNewAccount',   //新增账号
          component: addNewAccount,
        },
      	{
//    		redirect: '/doing',
      		path:'/set/accountMsg',   //账号信息
      		component: accountMsg
      	},
      	{
      		path:'/set/basicDDType',   //业务字典
      		component: basicDDType
      	},
      	{
      		path:'/goods/addGoods',   //新增商品
      		component: addGoods
      	},
      	{
      		path:'/goods/updateGoods',   //修改商品
      		component: updateGoods
      	},
        {
          path:'/goods/goodDetails',   //商品详情
          component: goodDetails
        },
         {
          path:'/goods/stockCheckinList',   //商品入库
          component: stockCheckinList
        },
        {
          path:'/goods/stockCheckinDetail',   //商品入库明细
          component: stockCheckinDetail
        },
        {
          path:'/goods/stockCheckoutDetail',   //商品出库明细
          component: stockCheckoutDetail
        },
        {
          path:'/goods/stockCheckinAdd',   //商品入库新增
          component: stockCheckinAdd
        },
        {
          path:'/goods/stockCheckoutList',   //商品出库
          component: stockCheckoutList
        },
        {
          path:'/goods/stockCheckoutAdd',   //商品出库新增
          component: stockCheckoutAdd
        },
        {
          path:'/goods/purOrderList',   //采购订单
          component: purOrderList
        },
        {
          path:'/goods/purOrderDetail',   //采购订单明细
          component: purOrderDetail
        },
        {
          path:'/goods/purOrderAdd',   //新增采购订单
          component: purOrderAdd
        },
        {
          path:'/goods/purOrderUpdate',   //编辑采购订单
          component: purOrderUpdate
        },
        {
          path:'/goods/purCompanyList',   //供货商管理
          component: purCompanyList
        },
        {
          path:'/goods/purCompanyAdd',   //新增供货商
          component: purCompanyAdd
        },
        {
          path:'/goods/purCompanyUpdate',   //修改供货商
          component: purCompanyUpdate
        },
        {
          path:'/goods/purCompanyGoodsList',   //供货商品列表
          component: purCompanyGoodsList
        },
         {
          path:'/goods/purOrderStorage',   //采购待入库
          component: purOrderStorage
        },
        {
          path:'/goods/warehousingAudit',   //入库审核
          component: warehousingAudit
        },
      	{
      		path:'/doing',   //敬请期待
      		component: doing
      	},
      	{
      		path:'/ddcllc',   //订单处理流程
      		component: ddcllc
      	},
      	{
      		path:'/xitongchushihua',   //系统初始化
      		component: xitongchushihua
      	},
      	{
      		path:'/goodschuli',   //商品处理流程
      		component: goodschuli
      	},
      	{
      		path:'/memberschuli',   //会员处理流程
      		component: memberschuli
      	},
      	{
      		path:'/zijinchuli',   //资金处理流程
      		component: zijinchuli
      	},
      	{
      		path:'/kehufankui',   //客户反馈
      		component: kehufankui
      	},
      		{
      		path:'/set/goodsWarehouse',   //仓库
      		component: goodsWarehouse
      	},
      	{
      		path:'/marketing/saleOrderPruleList',   //订单促销列表
      		component: saleOrderPruleList
      	},
      		{
      		path:'/marketing/orderPromotionalNew',   //订单促销新增
      		component: orderPromotionalNew
      	},
      	{
      		path:'/marketing/saleGoodsPruleList',   //订单促销列表
      		component: saleGoodsPruleList
      	},
      	{
      		path:'/marketing/goodsPromotionalNew',   //商品促销新增
      		component: goodsPromotionalNew
      	},
      	{
      		path:'/goods/tableGoodsList',   //商品收发汇总
      		component: tableGoodsList
      	},
      	{
      		path:'/goods/goodsDetail',   //商品收发汇总明细
      		component: goodsDetail
      	},
      	{
      		path:'/goods/stockGoodsList',   //库存列表
      		component: stockGoodsList
      	},
      	{
      		path:'/goods/stockGoodsListList',   //商品出入库列表
      		component: stockGoodsListList
      	},
        {
          path:'/goods/stockGoodsDetail',   //商品出入库明细
          component: stockGoodsDetail
        },

      	{
      		path:'/goodsPrule/portalAdvListList',   //广告发布列表
      		component: portalAdvListList
      	},
      	{
      		path:'/portalAdvListAdd',   //广告新增
      		component: saveAd
      	},
        {
          path:'/goodsPrule/rateSet',   //佣金比例设置
          component: rateSet
        },
        {
          path:'/goodsPrule/rewardDetailsList',   //奖金明细
          component: rewardDetailsList
        },
        {
          path:'/goodsPrule/goodsDistributList',   //添加商品分销
          component: goodsDistributList
        },
      	{
      		path:'/portalAdvListUpdate',   //广告修改
      		component: saveAdUpdate
      	},
      	{
      		path:'/goodsPrule/portalDocListList',   //通知公告列表
      		component: portalDocListList
      	},
      	{
      		path:'/portalDocListAdd',   //通知公告新增
      		component: saveInfo
      	},
      	{
      		path:'/portalDocListDetail',   //通知公告详情
      		component: saveInfoDetail
      	},

      ]
    },

    //应用中心  start
    {
      path: '/centerIndex',     //应用中心首页
      component: centerIndex
    },
    {
      path: '/zcService',     //智齿页面
      component: zcService
    },
    {
      path: '/zcEmpower',     //智齿授权（未授权）
      component: zcEmpower
    },
    {
      path: '/readyPower',     //智齿授权（已授权）
      component: readyPower
    },
    //应用中心  end

    //其他页面other(系统参数)
    {
      		redirect: '/doing',
      path: '/xitongcanshu',
      component: xitongcanshu
    },
    //loading_login页面
    {
      path: '/loading_login',
      component: loading_login
    },
    //其他页面other(账号安全)
    {
      path: '/accountSafety',
      component: accountSafety
    },
    //选择高浏览器版本
    {
      path: '/browser',
      component: browser
    },
    //购买服务
    {
      path: '/payService',
      component: payService
    },
    //其他页面other(账号助手)
    {
      		redirect: '/doing',
      path: '/zhanghaozhushou',
      component: zhanghaozhushou
    },
    //登录页面
    {
      path: '/login',
      component: login
    },
    //404页面
    {
      path: '/404',
      component: errorPage
    },
     {
      path: '/forget',						//忘记密码
      component: forget
    },
     {
      path: '/reset',						//重置密码
      component: reset
    },
    {
      path: '/reg',						//注册
      component: reg
    },
    {
      path: '/service',						//服务
      component: service
    }
  ]
})
